from xmanage.views import product, orders, logistics, employee, live, exam
from rest_framework.routers import DefaultRouter
from django.urls import path, include


router = DefaultRouter()
router.register(r'product_type', product.ProductTypeView, basename='product_type')
router.register(r'product_banner', product.ProductBannerView, basename='product_banner')
router.register(r'product', product.ProductView, basename='product')
router.register(r'product_export', product.ExportProductView, basename='product_export')
router.register(r'orders', orders.OrdersView, basename='orders')
router.register(r'logistics_company', logistics.LogisticsCompanyView, basename="logistics_company")
router.register(r'live', live.LiveView, basename='live')
router.register(r'exam', exam.ExamView, basename='exam')
router.register(r'question', exam.QuestionView, basename='question')

urlpatterns = [
    path('', include(router.urls)),
    path('employee/', employee.EmployeeConfigView.as_view({
        'post': 'update',
        'get': 'get'
    }))
]


